package com.example.tutorials;

import com.example.component.Window.LoginDialog;
import com.vaadin.Application;
import com.vaadin.ui.Window;

@SuppressWarnings("serial")
public class TutorialsApplication_BackUo extends Application {
	// @Override
	public void init2() {
		Window mainWindow = new Window("Tutorials Application");
		// Label label = new Label("Hello Vaadin user");
		// mainWindow.addComponent(label);
		setMainWindow(mainWindow);
		// Window myWindow = new Window("LoginDialog");
		// myWindow.setResizable(true);
		// myWindow.center();
		// float height = myWindow.getHeight();
		// float width = myWindow.getWidth();
		// Label heightLabel = new Label("Height : " + height);
		// Label widthLabel = new Label("Weidth : " + width);
		// myWindow.addComponent(heightLabel);
		// myWindow.addComponent(widthLabel);
		// mainWindow.addWindow(myWindow);
		// addComponent(new LoginDialog(mainWindow));
	}

	public void init() {
		Window main = new Window("The Main Window");
		setMainWindow(main);
//		Window myWindow = new Window();
//		myWindow.addComponent(new Label("Testing"));
//		main.addWindow(myWindow);
		main.addWindow(new LoginDialog());
	}
}
